/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.card.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import top.continew.admin.common.enums.GenderEnum;
import top.continew.starter.extension.crud.model.req.BaseReq;

import java.io.Serial;
import java.util.List;

/**
 * 创建或修改微信名片信息
 *
 * @author floyd
 * @since 2024/11/22 15:10
 */
@Data
@Schema(description = "创建或修改微信名片信息")
public class BusinessCardReq extends BaseReq {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 姓氏
     */
    @Schema(description = "姓氏")
    private String firstName;

    /**
     * 名字
     */
    @Schema(description = "名字")
    private String lastName;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空")
    @Length(max = 150, message = "姓名长度不能超过 {max} 个字符")
    private String name;

    /**
     * 性别（0：未知；1：男；2：女）
     */
    @Schema(description = "性别（0：未知；1：男；2：女）")
    @NotNull(message = "性别（0：未知；1：男；2：女）不能为空")
    private GenderEnum gender;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 二维码图片
     */
    @Schema(description = "二维码图片")
    @NotNull(message = "二维码图片不能为空")
    private String picture;

    /**
     * 个人简介
     */
    @Schema(description = "个人简介")
    private String introduction;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    @NotNull(message = "手机号码不能为空")
    @Length(max = 20, message = "手机号码长度不能超过 {max} 个字符")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @NotNull(message = "邮箱不能为空")
    @Length(max = 50, message = "邮箱长度不能超过 {max} 个字符")
    private String email;

    /**
     * 微信号
     */
    @Schema(description = "微信号")
    @Length(max = 50, message = "微信号长度不能超过 {max} 个字符")
    private String wechat;

    /**
     * 微信openId
     */
    @Schema(description = "微信openId")
    private String openId;

    /**
     * 公司id
     */
    @Schema(description = "公司ID")
    private String companyId;

    /**
     * 公司名称
     */
    @Schema(description = "公司名称")
    private String companyName;

    /**
     * 职位
     */
    @Schema(description = "职位")
    private String title;

    /**
     * 声音
     */
    @Schema(description = "声音")
    @Length(max = 500, message = "声音长度不能超过 {max} 个字符")
    private String audio;

    /**
     * 声音时长
     */
    @Schema(description = "声音时长")
    private Integer audioDuration;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

    /**
     * 状态（1：启用；2：禁用）
     */
    @Schema(description = "状态（1：启用；2：禁用）")
    @NotNull(message = "状态（1：启用；2：禁用）不能为空")
    private Integer status;

    /**
     * 名片介绍(一对多)
     */
    @Schema(description = "名片介绍")
    private List<Long> companyIntroduces;
}